﻿<UserControl x:Class="Microsoft.WVB.UI.CarouselView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ui="clr-namespace:Microsoft.WVB.UI;assembly=Microsoft.WVB.UI">
    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Height="Auto">
        <Image x:Name="blackBG" Source="http://localhost:8080/images/broadcasters/blackbroadcasterkBG.jpg" Stretch="Fill" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <ItemsControl x:Name="broadcasterItems" Opacity="1" VerticalAlignment="Top" ItemsSource="{Binding Path=Broadcasters, Mode=OneTime}" HorizontalAlignment="Center">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <ui:RadialPanel x:Name="BroadcasterPanel" ui:RadialPanel.AngleOffset="270"  Margin="10,35,10,35" Width="310" Height="220" ui:RadialPanel.ElementLayout="Automatic" />
                   </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Button ToolTipService.ToolTip="{Binding Path=Name, Mode=OneTime}" Width="100" Height="75" Click="Button_Click">
                        <Button.Content>
                            <Image Source="{Binding Path=Icon, Mode=OneTime}"/>
                        </Button.Content>
                    </Button>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
        <ui:BroadcasterChannelControl x:Name="currentBroadcasterInfo" Margin="0,170,0,0" Opacity="1" HorizontalAlignment="Center" VerticalAlignment="Center" />
    </Grid>
</UserControl>
